package edu.unr.cater.npap.client.managed.ui;

import com.google.web.bindery.requestfactory.gwt.ui.client.ProxyRenderer;
import edu.unr.cater.npap.client.proxy.DataAccessLogProxy;
import edu.unr.cater.npap.client.proxy.ProjectDataProxy;
import edu.unr.cater.npap.client.proxy.ProjectProxy;
import java.util.Set;

public class ProjectDataProxyRenderer extends ProxyRenderer<ProjectDataProxy> {

    private static edu.unr.cater.npap.client.managed.ui.ProjectDataProxyRenderer INSTANCE;

    protected ProjectDataProxyRenderer() {
        super(new String[] { "dataDescription" });
    }

    public static edu.unr.cater.npap.client.managed.ui.ProjectDataProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new ProjectDataProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(ProjectDataProxy object) {
        if (object == null) {
            return "";
        }
        return object.getDataDescription() + " (" + object.getDataDescription() + ")";
    }
}
